<include file="Public:header" />

<div class="main">
<div class="position"><p>您的当前位置：<a href="/">首页</a>  >  出租房 </p></div>

<div class="search_criteria">
    <div class="search_criteria_top">
        <ul><li class="ser_nav"><a href="{:U('Rental/index')}">出租房搜索</a></li><li><a href="{:U('Map/index',array('type'=>'rental'))}">地图找房</a></li></ul>
        <div class="search_gs ">
            <form method="get"  id="soForm">
                <input type="hidden" value="Home" name="m">
                <input type="hidden" value="Rental" name="c">
                <input type="hidden" value="index" name="a">
                <span class="search_gs_s1"><input name="key" type="text" class="sear_inp" id="houseKey" value="请输入您要搜索的关键字" /></span>
                <span class="search_gs_s1"><a href="javascript:;" id="so_but" class="but10">搜索</a></span>
            </form>
        </div>
    </div>
    <div class="ser_body">
        <div class="ser_body01 overflow_h"><span class="ser_body01_title">当前找房条件：</span>
            <ul>
                <volist name='s' id='vo'>
                    <li><a href="{$vo.url}"><span class="ser_ico"></span>{$vo.name}</a></li>
                </volist>
            </ul>
        </div>
        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">区域</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Rental/index','alias',$url)}">不限</a></li>
                        <li><span class="ser_metro"><a href="{:getUrl('Rental/index','metro',$url)}">地铁房</a></span></li>
                        <volist name='area_cate' id='vo'>
                            <li <php>if($cate_pid_info['alias']==$vo['alias']){</php> class="b" <php>}</php>><a title="{$vo.name}" href="{:getUrl('Rental/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>if($houseArr['arr']['metro']){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['metro']==$vo['id']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Rental/index','metro',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}else if($cate_pid_list){</php>
                <div class="ser_b02_n2 overflow_h">
                    <ul>
                        <volist name='cate_pid_list' id='vo'>
                            <li  <php>if($url['alias']==$vo['alias']){</php> class="b" <php>}</php> ><a title="{$vo.name}" href="{:getUrl('Rental/index','alias',$url,$vo['alias'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
                <php>}</php>
            </div>
        </div>

        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">价格</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Rental/index','price',$url)}">不限</a></li>
                        <volist name='menu[27]' id='vo'>
                            <li <php>if($url['price']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Rental/index','price',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>

        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">面积</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Rental/index','area',$url)}">不限</a></li>
                        <volist name='menu[23]' id='vo'>
                            <li <php>if($url['area']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Rental/index','area',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>

        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">朝向</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Rental/index','orientations',$url)}">不限</a></li>
                        <volist name='menu[17]' id='vo'>
                            <li <php>if($url['orientations']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Rental/index','orientations',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>

        <div class="ser_body02 overflow_h">
            <span class="ser_b02_title">方式</span>
            <div class="ser_b02_n">
                <div class="ser_b02_n1 overflow_h">
                    <ul>
                        <li class="ser_col01"><a href="{:getUrl('Rental/index','rentalMode',$url)}">不限</a></li>
                        <volist name='menu[26]' id='vo'>
                            <li <php>if($url['rentalMode']==$vo['id']){</php> class="b" <php>}</php> ><a href="{:getUrl('Rental/index','rentalMode',$url,$vo['id'])}">{$vo.name}</a></li>
                        </volist>
                    </ul>
                </div>
            </div>
        </div>

        <div class="ser_body03" style="height: 30px;">
            <span class="ser_b03_title">更多：</span>
            <ul>
                <li class="droplist">
                    <em>{$url['houseType'] ? $s['houseType']['name'] : '楼房类型' }</em>
                    <div>
                        <a <php>if(!$url['houseType']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','houseType',$url)}">不限</a>
                        <volist name='menu[2]' id='vo'>
                            <a <php>if($url['houseType']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','houseType',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['mating'] ? $s['mating']['name'] : '房屋配套' }</em>
                    <div>
                        <a <php>if(!$url['mating']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','mating',$url)}">不限</a>
                        <volist name='menu[20]' id='vo'>
                            <a <php>if($url['mating']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','mating',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['renovationType'] ? $s['renovationType']['name'] : '装修类型' }</em>
                    <div>
                        <a <php>if(!$url['renovationType']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','renovationType',$url)}">不限</a>
                        <volist name='menu[10]' id='vo'>
                            <a <php>if($url['renovationType']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','renovationType',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['room'] ? $s['room']['name'] : '室' }</em>
                    <div>
                        <a <php>if(!$url['room']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','room',$url)}">不限</a>
                        <volist name='menu[24]' id='vo'>
                            <a <php>if($url['room']==$vo['parameter']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','room',$url,$vo['parameter'])}">{$vo.name}室</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['hall'] ? $s['hall']['name'] : '厅' }</em>
                    <div>
                        <a <php>if(!$url['hall']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','hall',$url)}">不限</a>
                        <volist name='menu[24]' id='vo'>
                            <a <php>if($url['hall']==$vo['parameter']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','hall',$url,$vo['parameter'])}">{$vo.name}厅</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['kitchen'] ? $s['kitchen']['name'] : '卫' }</em>
                    <div>
                        <a <php>if(!$url['kitchen']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','kitchen',$url)}">不限</a>
                        <volist name='menu[24]' id='vo'>
                            <a <php>if($url['kitchen']==$vo['parameter']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','kitchen',$url,$vo['parameter'])}">{$vo.name}卫</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['toilet'] ? $s['toilet']['name'] : '厨' }</em>
                    <div>
                        <a <php>if(!$url['toilet']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','toilet',$url)}">不限</a>
                        <volist name='menu[24]' id='vo'>
                            <a <php>if($url['toilet']==$vo['parameter']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','toilet',$url,$vo['parameter'])}">{$vo.name}厨</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['balcony'] ? $s['balcony']['name'] : '阳台' }</em>
                    <div>
                        <a <php>if(!$url['balcony']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','balcony',$url)}">不限</a>
                        <volist name='menu[24]' id='vo'>
                            <a <php>if($url['balcony']==$vo['parameter']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','balcony',$url,$vo['parameter'])}">{$vo.name}阳台</a>
                        </volist>
                    </div>
                </li>
                <li class="droplist">
                    <em>{$url['payType'] ? $s['payType']['name'] : '支付方式' }</em>
                    <div>
                        <a <php>if(!$url['payType']){</php> class="a_select" <php>}</php> href="{:getUrl('Rental/index','payType',$url)}">不限</a>
                        <volist name='menu[25]' id='vo'>
                            <a <php>if($url['payType']==$vo['id']){</php> class="a_select" <php>}</php>  href="{:getUrl('Rental/index','payType',$url,$vo['id'])}">{$vo.name}</a>
                        </volist>
                    </div>
                </li>
            </ul>
        </div>
    </div>
</div>

<div class="body_house overflow_h">
<div class="body_left">
    <div class="body_title">
        <ul>
            <li><a <php>if(!$url['other']){</php>class="selected"<php>}</php> href="{:getUrl('Rental/index','other',$url)}" >全部房源</a></li>
            <li><a <php>if($url['other']==1){</php>class="selected"<php>}</php> href="{:getUrl('Rental/index','other',$url,1)}">急租房源</a></li>
            <li><a <php>if($url['other']==2){</php>class="selected"<php>}</php> href="{:getUrl('Rental/index','other',$url,2)}">新推房源</a></li>
            <li><a <php>if($url['other']==3){</php>class="selected"<php>}</php> href="{:getUrl('Rental/index','other',$url,3)}">个人房源</a></li>
        </ul>
        <ul style="float: right">
            <li style="width: 80px;"><a href="{:getUrl('Rental/index','sort',$url,$houseArr['sort'][1])}" <php>if($url['sort'] && $url['sort']<=2){</php>class="selected"<php>}</php> >时间</a></li>
            <li style="width: 80px;"><a href="{:getUrl('Rental/index','sort',$url,$houseArr['sort'][4])}" <php>if($url['sort']>=8 && $url['sort']<=9){</php>class="selected"<php>}</php>>价格</a></li>
            <li style="width: 80px;"><a href="{:getUrl('Rental/index','sort',$url)}" <php>if(!$url['sort']){</php>class="selected"<php>}</php> >默认排序</a></li>
        </ul>
    </div>

    <div class="overflow_h">

        <volist name='list' id='vo'>
            <php>
                if($vo['estate_id']){
                    $estate = getEstate($vo['estate_id']);
                }
                $img = json_decode($vo['file'],true);
            </php>
            <div class="body_div">
                <div class="overflow_h">
                    <div class="renting">
                        <span class="body_div01_img"><div class="buy_t2">{:count($img)}</div><div class="buy_t1"><h1><a target="_blank" href="{:U('Estate/detail',array('id'=>$estate['id']))}">{$estate.title}</a></h1></div><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}"><img alt="{$vo.title}" title="{$vo.title}" width="180" height="135" src="{$vo.img}"></a></span>
                        <h2><a target="_blank" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a>
                            <span class="renting_sp"><a class="but28" href="#">{$menu[10][$vo['renovation_type']]['name']}</a></span>
                        </h2>
                        <p><span class="body_span"><span class="text06">所在位置: </span>{$vo.address}</span><span class="body_span"><a class="body_span01" target="_blank" href="{:U('Map/index',array('hid'=>$vo['id'],'type'=>'rental'))}">地图</a></span></p>
                        <p>[{$menu[26][$vo['rental_mode']]['name']}]/{$vo.room}室{$vo.hall}厅{$vo.kitchen}卫{$vo.toilet}厨{$vo.balcony}阳台/房龄{$vo.years}年/{$vo.floor}/{$vo.total_floor}层/{$menu[17][$vo['orientations']]['name']} </p>
                        <p><span class="org02"><a target="_blank" href="{:U('StoreRental/index',array('uid'=>$vo['user_id']))}"><img width="14" height="12" src="__IMG__/ico46.png"> {$vo.contacts}</a></span>(<php>if($vo['source']==1){</php>个人<php>}else{</php>经纪人<php>}</php>) <span class="org02">联系电话：</span><span class="text08">{$vo.phone}</span></p>
                    </div>
                    <div class="renting_r">
                        <h1><span class="text07">{$vo.price}</span>元/㎡</h1>
                        <p style="height: 35px;line-height: 35px;">面积{$vo.area}㎡</p>
                        <p><a class="but30 pop_up"  href="javascript:;" request-url="{:U('Ajax/rentalBook',array('id'=>$vo['id']))}">预约看房</a></p>
                    </div>
                </div>
            </div>
        </volist>

        <div class="plastic_bottom_pages">
            {$page}
        </div>

    </div>
</div>
<div class="body_right">
    <div class="s_h_right01">
    <ul class="overflow_h">
        <li><a href="{$site.link}" target="_blank"  class="but16">我要租房</a></li><li><a href="{$site.link}" target="_blank"  class="but17">委托出租</a></li><li><a target="_blank" href="{:MU('Rental/add')}" class="but18">发布出租</a></li><li><a href="{:MU('Rental/index')}" target="_blank" class="but19">管理出租</a></li>
    </ul>
    </div>
    <div class="second_hand_house_box">
        <h1 class="n_h_title"><span class="s_bg_line">推荐出租房</span><!--span class="more"><a href="#">更多</a></span--></h1>
        <ul>
            <volist name='rec_Rental' id='vo'>
                <li><span class="s_box01"><a title="{$vo.title}" href="{:U('Rental/detail',array('id'=>$vo['id']))}">{$vo.title}</a></span><span class="s_box02">{$vo.area}㎡</span><span class="s_box02 org">{$vo.total_price}万</span></li>
            </volist>
        </ul>
    </div>

    <div class="introduce_house06">
        <h1 class="n_h_title"><span class="s_bg_line">出租房知识</span><span class="more"><a target="_blank" href="{:U('News/lists',array('alias'=>'zufangzhishi'))}">更多</a></span></h1>
        <ul>
            <volist name='news_list' id='vo'>
                <li><a  target="_blank" title="{$vo.title}" href="{:U('News/detail',array('id'=>$vo['id']))}">· {$vo.title}</a></li>
            </volist>
        </ul>
    </div>
</div>
</div>
</div>
<script type="text/javascript" src="__JS__/jquery.js"></script>
<script type="text/javascript" src="__JS__/layer/layer.js"></script>
<script type="text/javascript" src="__JS__/public.js"></script>
<script type="text/javascript">
    $("#houseKey").fangCmsText();
    $("#so_but").click(function(){
        var v = $("#houseKey").val();
        if(v=='' || v=='请输入您要搜索的关键字'){
            msg_show('请输入您要搜索的关键字',2);
            return false;
        }
        $("#soForm").submit();
    });
</script>
<include file="Public:footer" />